/**
 * ===========================================================================
 *
 *       Filename:  public.h
 *
 *    Description:  learn more
 *
 *        Version:  1.0
 *        Created:  04/14/09 22:22:46
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Author (mn), Email@xxx.xxx
 *        Company:  xxx xxx
 *
 * ===========================================================================
 */

#ifndef __PUBLIC_H__
#define __PUBLIC_H__

#define DEF_BUFMAX  8192
#define DEF_IPLEN	 16
#define DEF_USERMAX	1024

struct g_session_t
{
	char ip[DEF_IPLEN];
	short port;
	int sockfd;
} g_session;

struct u_session_t
{
	int conn;
	char recvbuf[DEF_BUFMAX];
	int recvlen;
	char sendbuf[DEF_BUFMAX];
	int sendlen;

} u_session[DEF_USERMAX];

int u_usercnt;

#endif // __PUBLIC_H__
